<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Исходный файл amsotemplate.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li class="current"><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
<h1>amsotemplate.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef AMSOTEMPLATE_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define AMSOTEMPLATE_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;qstring.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;qptrlist.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;qvaluestack.h&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;qdom.h&gt;</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="preprocessor">#define open_token "&lt;:"</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define close_token ":&gt;"</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define open_token_section "\\[:"</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define close_token_section ":\\]"</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define PARAM "param"</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 <span class="preprocessor">#include "ananasglobal.h"</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include "itemplate.h"</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 
<a name="l00053"></a><a class="code" href="classaMSOTemplate.html">00053</a> <span class="keyword">class  </span>ANANAS_EXPORT <a class="code" href="classaMSOTemplate.html" title="Класс определяет интерфейс для работы с шаблонами...">aMSOTemplate</a> : <span class="keyword">public</span> <a class="code" href="classiTemplate.html" title="Интерфейс для работы с отчетами. Наследует QObject...">iTemplate</a>
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055         Q_OBJECT
<a name="l00056"></a>00056 <span class="keyword">public</span>:
<a name="l00057"></a>00057 
<a name="l00058"></a>00058         <a class="code" href="classaMSOTemplate.html" title="Класс определяет интерфейс для работы с шаблонами...">aMSOTemplate</a>();
<a name="l00059"></a>00059         <span class="keyword">virtual</span> ~<a class="code" href="classaMSOTemplate.html" title="Класс определяет интерфейс для работы с шаблонами...">aMSOTemplate</a>();
<a name="l00060"></a>00060 
<a name="l00061"></a>00061         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classiTemplate.html#8a8de851d0401d417b0c8e8f57f54a07">open</a>( <span class="keyword">const</span> QString &amp;fname );
<a name="l00062"></a>00062         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classiTemplate.html#6b6c46451a1b933b668683cb2b680299">close</a>();
<a name="l00063"></a>00063         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classiTemplate.html#b2ccc73310de9e1a7a1442360a0d4042">clear</a>();
<a name="l00064"></a>00064         <span class="keyword">virtual</span> QString <a class="code" href="classiTemplate.html#afcc466ddc7bb2a5178312051e32dfc5">getValue</a>( <span class="keyword">const</span> QString &amp;name );
<a name="l00065"></a>00065         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classiTemplate.html#6414ef83e6d4bb5a9a9b03e9db21e290">setValue</a>( <span class="keyword">const</span> QString &amp;name, <span class="keyword">const</span> QString &amp;value );
<a name="l00066"></a>00066         <span class="keyword">virtual</span> QString <a class="code" href="classiTemplate.html#c7d5273e1f4637384e648b4c95b08bae">exec</a>( <span class="keyword">const</span> QString &amp;sname );
<a name="l00067"></a>00067         <span class="keyword">virtual</span> QString <a class="code" href="classiTemplate.html#b50ddabfbad0a49c5d6daef90cd46ab3">result</a>();
<a name="l00068"></a>00068         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classiTemplate.html#e0ec438061135dcebccd23fc6db78297" title="Сохраняет документ в файл с заданным именем...">save</a>( <span class="keyword">const</span> QString &amp; fname );
<a name="l00069"></a>00069         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classiTemplate.html#97bc4096b4e0ac4a56d5420225f19fd8">cleanUpTags</a>();
<a name="l00070"></a>00070         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classiTemplate.html#9ab28504cddca046af153f7b11b16143">setDir</a>(<span class="keyword">const</span> QString &amp;dir);
<a name="l00071"></a>00071         <span class="keyword">virtual</span> QString <a class="code" href="classiTemplate.html#9b05b82bad9eb38263bd0f6d74e9b7a0">getDir</a>();
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 <span class="keyword">protected</span>:
<a name="l00074"></a>00074         QMap&lt;QString,QString&gt; values;
<a name="l00075"></a>00075         <span class="keywordtype">void</span> searchTags(QDomNode node, <span class="keyword">const</span> QString &amp;sname );
<a name="l00076"></a>00076         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getNodeTags(QDomNode node, <span class="keyword">const</span> QString &amp;tagname, <span class="keywordtype">bool</span> params );
<a name="l00077"></a>00077         <span class="keywordtype">void</span> insertRowValues(QDomNode node);
<a name="l00078"></a>00078         <span class="keyword">virtual</span> <span class="keywordtype">void</span> insertTagsValues(QDomNode node, <span class="keyword">const</span> QString &amp;tagName);
<a name="l00079"></a>00079         <span class="keywordtype">void</span> clearTags(QDomNode node, <span class="keywordtype">bool</span> section );
<a name="l00080"></a>00080         <span class="keywordtype">void</span> clearRow(QDomNode node);
<a name="l00081"></a>00081         <span class="keywordtype">void</span> clearAttributes(QDomNode n, <span class="keyword">const</span> QString node, <span class="keyword">const</span> QString attr);
<a name="l00082"></a>00082         <span class="keywordtype">int</span> getRowIndex(QDomNode node);
<a name="l00083"></a>00083 
<a name="l00092"></a><a class="code" href="classaMSOTemplate.html#d3e96aa1ecfdfd7c81bf0d34de09aaa9">00092</a>         QString templateDir;
<a name="l00093"></a>00093         
<a name="l00102"></a><a class="code" href="classaMSOTemplate.html#b6e630cf0ac7f1898a5d28c68b8fb26e">00102</a>         QDomDocument docTpl;
<a name="l00103"></a>00103         
<a name="l00104"></a>00104         
<a name="l00105"></a>00105 };
<a name="l00106"></a>00106 
<a name="l00107"></a>00107 <span class="preprocessor">#endif //AMSOTEMPLATE_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:14 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
